From 54e3711c390716e7df96c16ef6b0a81858fe99f5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 9 Dec 2014 00:22:56 -0500 Subject: [PATCH] Don't compare booleans Just use negation. --- gtk/gtktreemodel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtktreemodel.c b/gtk/gtktreemodel.c index 362e339886..39065621f7 100644 --- a/gtk/gtktreemodel.c +++ b/gtk/gtktreemodel.c @@ -2014,7 +2014,7 @@ gtk_tree_model_foreach (GtkTreeModel *model, g_return_if_fail (func != NULL); path = gtk_tree_path_new_first (); - if (gtk_tree_model_get_iter (model, &iter, path) == FALSE) + if (!gtk_tree_model_get_iter (model, &iter, path)) { gtk_tree_path_free (path); return; -- 2.30.2